﻿using Microsoft.AspNetCore.Mvc;
using Single.WebApp.Components;

namespace Single.WebApp.Areas.Sys.Controllers
{
    [Area("sys")]
    public class OtherController : WorkController
    {
        public IActionResult GenerateEntity()
        {
            return View();
        }

        public string GenerateEntityCode(string tableName)
        {
            return ServiceSysProps.SysOther.GetEntityCodeByTableName(tableName).Serialize();
        }

        public IActionResult GenerateTableAndForm()
        {
            return View();
        }

        public string GenerateTableColumnsData(string tableName)
        {
            return ServiceSysProps.SysOther.GetColumnsDataByTableName(tableName).Serialize();
        }
    }
}